import request from '@/utils/request.js'

export default{
  // 分页查询课程
  getCourseFrontList(page, limit, courseFrontVo){
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: courseFrontVo
    })
  },
  // 查询所有分类
  getAllSubject(){
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  // 根据课程ID获取课程详细信息
  getFrontCourseInfo(courseId, userId){
    return request({
      url: `/eduservice/coursefront/getFrontCourseInfo/${courseId}/${userId}`,
      method: 'get'
    })
  }
}
